package com.hx.vending.service;

import com.hx.vending.bean.EquipmentType;
import com.hx.vending.bean.EquipmentTypeCase;
import com.hx.vending.bean.EquipmentTypeRise;
import com.hx.vending.bean.EquipmentTypeTrails;
import com.hx.vending.bean.entity.EquipmentTypeVO;
import com.hx.vending.util.Msg;

/**
 * Created by Administrator on 2019/1/12.
 */
public interface IEquipmentTypeService {
    /**
     * 添加设备类型，层，货道
     * @param equipmentTypeVO
     * @return
     */
    Msg insertTypeAndRise(EquipmentTypeVO equipmentTypeVO);

    /**
     * 查询设备类型
     * @param typeName
     * @return
     */
    Msg getEquipmentType(String typeName,Integer pageNum);

    /**
     * 根据机箱查询货道
     * @param equipmentCaseId
     * @return
     */
    Msg getEquipmentTrails(Integer equipmentCaseId);

    /**
     * 修改设备类型
     * @param equipmentType
     * @return
     */
    Msg editEquipmentType(EquipmentType equipmentType);

    /**
     * 修改设备机箱
     * @param equipmentTypeVO
     * @return
     */
    Msg editEquipmentTypeCase(EquipmentTypeVO equipmentTypeVO);

    /**
     * 设置设备货道
     * @param equipmentTypeTrails
     * @return
     */
    Msg editEquipmentTypeTrails(EquipmentTypeTrails equipmentTypeTrails);
    /**
     * 根据设备类型添加设备货道信息
     * @param equipmentId
     * @param equipmentTypeId
     * @return
     */
    Msg updateEquipmentByType(String equipmentId, Integer equipmentTypeId);

    /**
     * 修改设备类型，层，货道
     * @param equipmentTypeRise
     * @return
     */
    Msg editEquipmentTypeRise(EquipmentTypeRise equipmentTypeRise);

    /**
     * 删除设备类型，层，货道
     * @param equipmentTypeIds
     * @return
     */
    Msg deleteEquipmentTypeRise(String equipmentTypeIds);

    Msg deleteEquipmentCase(String equipmentTypeCaseIds);

    /**
     * 查询设备的货道数量（Android）
     * @param equipmentId
     * @return
     */
    Msg selectEquipmentTypeByEquipment(String equipmentId);

    int insertEquipmentType(EquipmentType equipmentType);

}
